package net.begincode.common.util;

import com.google.common.collect.Lists;
import java.util.List;
import java.util.Optional;

public class CollectionUtils {

    public static <T> List<T> safes(List<T> sources){
       return Optional.ofNullable(sources).orElse(Lists.newArrayListWithCapacity(0));
    }
}
